﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
namespace sieuthi.Threelayer.VO
{
    public class khachhangVO
    {
        public string MaKH { get ; set; }
        public string Hoten { get; set; }
        public string DiaChi { get; set; }
        public khachhangVO khachhangIDataReader(IDataReader dr)
        {
            khachhangVO obj = new khachhangVO();
            obj.DiaChi = (dr["diachi"] is DBNull) ? string.Empty : dr["diachi"].ToString();
            obj.Hoten = (dr["hoten"] is DBNull) ? string.Empty : dr["hoten"].ToString();
            obj.MaKH = (dr["diachi"] is DBNull) ? string.Empty : dr["maKH"].ToString();
            return obj;
        }
    }
}
